package com.atguigu.boot.controller;

import com.atguigu.hello.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: HelloController
 * Package: com.atguigu.boot.controller
 * Description:
 *
 * @Author Root
 * @Create 2023/5/30 15:31
 * @Version 1.0
 */
@RestController
public class HelloController {


    @Autowired
    HelloService helloService;

    @GetMapping
    public String sayHello() {
        String s = helloService.sayHello("张三");
        return s;
    }

}
